#!/usr/bin/env python3
# -*- coding: utf-8 -*-

'''

asrserver测试专用客户端

'''

import requests
from general_function.file_wav import *

url = 'http://127.0.0.1:20000/'

token = 'qwertasd'

wavsignal,fs=read_wav_data('/home/speech.AI/github/DFCNN/dataset/data_thchs30/test/D11_750.wav')

#print(wavsignal,fs)

datas={'token':token, 'fs':fs, 'wavs':wavsignal}

r = requests.post(url, datas)

r.encoding='utf-8'

print(r.text)
